#!/bin/sh

DAEMON_ARGS="-i $(ip addr show | awk '/inet.*brd/{print $NF}' | head -1) -s"

. /usr/share/common

start() {
	echo_title "Starting mdnsd"

	start_daemon
}

stop() {
	echo_title "Stopping mdnsd"

	stop_daemon
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		sleep 1
		start
		;;
	*)
		echo "Usage: $0 {start|stop|restart}"
		exit 1
		;;
esac

exit 0
